<? $i = 1; ?>
<div class="section">
	<form method="post" action="<?=Url::get()?>">
		<dl>		
			<?if(!$scope['logged_in']):?>		
			<dt>Email</dt>
			<dd class="required"><input type="text" name="email" maxlength="150" tabindex="<?=$i++?>" /></dd>

			<dt>Password</dt>
			<dd class="required"><input type="password" name="password" tabindex="<?=$i++?>" /></dd>
			<dd>
				<label for="logme">
					<input id="logme" type="radio" name="action" value="0" tabindex="<?=$i++?>" />
					Log me in
				</label>
			</dd>
			
			<dt>Display Name</dt>
			<dd class="required"><input type="text" name="display_name" maxlength="50" tabindex="<?=$i++?>" /></dd>
			
			<dt>Website</dt>
			<dd><input type="text" name="website" maxlength="50" tabindex="<?=$i++?>" /></dd>
			
			<dd>
				<label for="regme">
					<input id="regme" type="radio" name="action" value="1" tabindex="<?=$i++?>" />
					Register me
				</label>
			</dd>
			<?endif;?>

			<dt>Body</dt>
			<dd class="required"><textarea name="body" rows="5" tabindex="<?=$i++?>"></textarea></dd>
		</dl>
		<br />
		<center>
			<input type="submit" value="Publish This Thought" tabindex="<?=$i++?>" />
		</center>
	</form>
</div>